package com.xucia.jsponic.remote;

import org.json.JSONObject;

import com.xucia.jsponic.data.LazyPropertyId;
import com.xucia.jsponic.datasource.DataSource;
import com.xucia.jsponic.datasource.PersistableInitializer;
/**
 * Just a place holder data source, client objects should be in the id map or not available
 * @author Kris Zyp
 *
 */
public class ClientData implements DataSource {
	String id;
	public Object getFieldValue(LazyPropertyId valueId) throws Exception {
		return null;
	}



	public void initParameters(JSONObject parameters) throws Exception {
	}

	public void mapObject(PersistableInitializer initializer, String objectId)
			throws Exception {
		throw new RuntimeException("The client object was not found in the current session.");

	}



	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}


}
